package com.zzgc.common.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 地址映射
 * @Author:
 * @CreateTime: 2022-12-12  08:55
 * @Description:
 * @Version: 1.0
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/excel/**").addResourceLocations("file:E:/桌面/upload/");
        registry.addResourceHandler("/qrcode/**").addResourceLocations("file:D:/lgl/data/visionData/qrcode/");
    }

}
